-- GENERATED SPELL FOR [Glacial Bonelord] --


function spell0_31754(pUnit, Event) --@Ice Slash,n/a--
pUnit:FullCastSpellOnTarget(51878,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31754', 10334, 1)
end

function spell1_31754(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(39171,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31754', 5338, 1)
end

function Sorts_31754(pUnit, Event)
local choix_sorts_31754 = math.random(0, 1)
if choix_sorts_31754 == 0 then
pUnit:RegisterEvent('spell0_31754', 1, 1)
end
if choix_sorts_31754 == 1 then
pUnit:RegisterEvent('spell1_31754', 1, 1)
end
end

function mob31754_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31754', math.random(1500, 3000), 1)
end

function mob31754_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31754_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31754_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31754, 1, 'mob31754_Action')
RegisterUnitEvent(31754, 2, 'mob31754_Leave')
RegisterUnitEvent(31754, 3, 'mob31754_Kill')
RegisterUnitEvent(31754, 4, 'mob31754_Die')
